package com.yuanfuxing.boxuegu.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.yuanfuxing.boxuegu.activity.MainActivity;
import com.yuanfuxing.boxuegu.R;

public class LoadingActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loading);

        Thread thread = new Thread() {
            public void run() {
                try{
                    Thread.sleep(3000);
                }catch (Exception e){
                    e.printStackTrace();
                }
                Intent intent = new Intent(LoadingActivity.this,MainActivity.class);
                startActivity(intent);
                super.run();
            }
        };
        thread.start();
    }
}
